<?php 
$seitcm_students_module = isset($_GET['module']) ? $_GET['module'] : 'list';
switch ($seitcm_students_module) {
	case 'list':
		if ( !(current_user_can( 'seitcm_student_list' ))){
			wp_die( __( 'SEITCM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_students_listtable_view.php';
		break;
	case 'add':
		if ( !(current_user_can( 'seitcm_student_update' ))){
			wp_die( __( 'SEITCM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_students_add_view.php';
		break;
	case 'detail':
		if ( !(current_user_can( 'seitcm_student_list' ))){
			wp_die( __( 'SEITCM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_students_detail_view.php';
		break;
	case 'update':
		if ( !(current_user_can( 'seitcm_student_update' ))){
			wp_die( __( 'SEITCM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_students_update_view.php';
		break;
	case 'registerto':
		if ( !(current_user_can( 'seitcm_registration' ))){
			wp_die( __( 'SEITCM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_students_register_new.php';
		break;
	case 'learnhistory':
		if ( !(current_user_can( 'seitcm_student_list' ))){
			wp_die( __( 'SEITCM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_students_learnhistory_view.php';
		break;
}
?>